import * as types from './mutation-types'

const mutations = {
    [types.SET_U](state, n) {
        state.user = n
    },
    [types.SET_CATEBAG](state, n) {
        state.Catebag = n
    },
    [types.SET_COURSE](state, n) {
        state.Course = n
    },
    [types.SET_COURSECATEBAG](state, n) {
        state.Coursecatebag = n
    },
    [types.SET_SECRETFILE](state, n) {
        state.Secretfile = n
    },
    [types.SET_TEACHERPROPOSAL](state, n) {
        state.Teacherproposal = n
    },
    [types.SET_TPDATA](state, n) {
        state.Tpdata = n
    },
    [types.SET_ITEMBANK](state, n) {
        state.Itembank = n
    },
    [types.SET_ITEMBANKGROUP](state, n) {
        state.Itembankgroup = n
    },
    [types.SET_ITEMBANKITEMBANKGROUP](state, n) {
        state.Itembankitembankgroup = n
    },
    [types.SET_TEACHERITEMBANKITEMBANK](state, n) {
        state.Teacheritembank = n.teacheritembank
        state.Teacheritembankitembank = n.teacheritembankitembank
    },
    [types.SET_ANSWER](state, n) {
        state.Answer = n
    },
}
export default mutations